extends "../cex___Hide_dragon3/cex___Hide_dragon3.gd"

func _extInit():
	._extInit()
	chaName = "魔法龙·MAX"
	attCoe.atk = 50 / 8.5  / 4
	attCoe.maxHp = 2000 / 112.5 / 4
	addCdSkill("mfl3",17)
	addSkillTxt("死亡黑洞：发射黑洞对当前敌人及其周围1格单位造成1000%魔法伤害[cd:17秒]")
	
func _castCdSkill(id):
	._castCdSkill(id)
	if id == "mfl3" && aiCha:
		cst("死亡黑洞","000000",position)
		var chas = getAllChas(1)
		var ce = aiCha.cell
		for i in chas:
			if abs(i.cell.x - ce.x)  <= 1 && abs(i.cell.y - ce.y) <=1:
				hurtChara(i,att.atk*10,Chara.HurtType.MGI,Chara.AtkType.SKILL)
